package trytry;

import java.io.IOException;

public class Test {
    public static void main(String[] args) {

        Car car = new Car();


        try {
            car.setSpeed(69);
            car.setSpeed(21);
            car.setSpeed(149);
            car.setSpeed(40);
            car.setSpeed(102);

        } catch (MyException myException) {
            System.out.println("您的车速大于100了");
            myException.printStackTrace();
        }
    }
}
